package tech.aistar.corejava.day09;

/**
 * Created by 豆梦寒 on 2019/7/25.
 */
public class EqualsDemo {
    public static void main(String[] args) {
        String s1 = new String("abc");
        String s2 = new String("abc");
        System.out.println(s1==s2);
        //java.lang.String类肯定重写了equals方法--肯定比较具体的字符串的字面量
        System.out.println(s1.equals(s2));
    }
}
